import {createApp} from 'vue';
import App from './App.vue';
import './assets/global.less';
import components from './components/global';
import Router from './router/index';

import 'tdesign-vue-next/es/style/index.css';

import {createPinia} from 'pinia'
import {setupPlugins} from "@/plugins";

import axios from './utils/request'

const app = createApp(App)
app.config.productionTip = false

// components
for (const i in components) {
    app.component(i, components[i])
}

app.use(Router)

const pinia = createPinia()
app.use(pinia)

setupPlugins()

app.provide('$axios', axios)

app.mount('#app')
